package com.astro.app;

import org.springframework.context.ApplicationContext;

public final class AppContext {

    private static ApplicationContext springContext;

    public static void setSpringContext(ApplicationContext context) {
        springContext = context;
    }

    public static ApplicationContext getSpringContext() {
        while (springContext == null) {
        	try {
				Thread.sleep(1000L);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
        }
        return springContext;
   }
}